package com.dragon.modules.yuegou.query.busd;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.busd.PtConfigEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
/**
 * 商圈线下积分回调设置 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2023-03-15 10:37:23
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PtConfigQuery extends PtConfigEntity implements Query<PtConfigEntity> {


    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 商管云appid查询条件 */
	@JsonUnwrapped(prefix = "aliSgyPid")
	private Condition<String> aliSgyPidCondition;

    /** 支付宝商户appid查询条件 */
	@JsonUnwrapped(prefix = "aliMerchantAppid")
	private Condition<String> aliMerchantAppidCondition;

    /** 支付宝商户公钥查询条件 */
	@JsonUnwrapped(prefix = "aliPublicKey")
	private Condition<String> aliPublicKeyCondition;

    /** 支付宝商户公钥查询条件 */
	@JsonUnwrapped(prefix = "aliMerchantKey")
	private Condition<String> aliMerchantKeyCondition;

    /** 支付宝商户私钥查询条件 */
	@JsonUnwrapped(prefix = "aliPrivateKey")
	private Condition<String> aliPrivateKeyCondition;

    /** 逻辑删除，1表示已删除,0表示未删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PtConfigQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PtConfigQuery(PtConfigEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PtConfigQuery(PtConfigQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.aliSgyPidCondition != null) {
			this.aliSgyPidCondition = other.aliSgyPidCondition.copy();
		}
		if(other.aliMerchantAppidCondition != null) {
			this.aliMerchantAppidCondition = other.aliMerchantAppidCondition.copy();
		}
		if(other.aliPublicKeyCondition != null) {
			this.aliPublicKeyCondition = other.aliPublicKeyCondition.copy();
		}
		if(other.aliMerchantKeyCondition != null) {
			this.aliMerchantKeyCondition = other.aliMerchantKeyCondition.copy();
		}
		if(other.aliPrivateKeyCondition != null) {
			this.aliPrivateKeyCondition = other.aliPrivateKeyCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PtConfigEntity> toQueryWrapper() {
		QueryWrapper<PtConfigEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (aliSgyPidCondition != null) {
			aliSgyPidCondition.toWrapper(wrapper, COL_ALI_SGY_PID);
		}
		if (aliMerchantAppidCondition != null) {
			aliMerchantAppidCondition.toWrapper(wrapper, COL_ALI_MERCHANT_APPID);
		}
		if (aliPublicKeyCondition != null) {
			aliPublicKeyCondition.toWrapper(wrapper, COL_ALI_PUBLIC_KEY);
		}
		if (aliMerchantKeyCondition != null) {
			aliMerchantKeyCondition.toWrapper(wrapper, COL_ALI_MERCHANT_KEY);
		}
		if (aliPrivateKeyCondition != null) {
			aliPrivateKeyCondition.toWrapper(wrapper, COL_ALI_PRIVATE_KEY);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		return wrapper;
	}
	
	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈id查询条件
	 * 
	 * @param busdIdCondition 商圈id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回商管云appid查询条件
	 * 
	 * @return aliSgyPidCondition 商管云appid查询条件
	 */
	public Condition<String> aliSgyPid() {
		this.aliSgyPidCondition = new Condition<>();
		return this.aliSgyPidCondition;
	}
	
	/**
	 * 获取商管云appid查询条件
	 * 
	 * @return aliSgyPidCondition 商管云appid查询条件
	 */
	public Condition<String> getAliSgyPidCondition() {
		return aliSgyPidCondition;
	}

	/**
	 * 设置商管云appid查询条件
	 * 
	 * @param aliSgyPidCondition 商管云appid查询条件
	 */
	public void setAliSgyPidCondition(Condition<String> aliSgyPidCondition) {
		this.aliSgyPidCondition = aliSgyPidCondition;
	}

	/**
	 * 构造并返回支付宝商户appid查询条件
	 * 
	 * @return aliMerchantAppidCondition 支付宝商户appid查询条件
	 */
	public Condition<String> aliMerchantAppid() {
		this.aliMerchantAppidCondition = new Condition<>();
		return this.aliMerchantAppidCondition;
	}
	
	/**
	 * 获取支付宝商户appid查询条件
	 * 
	 * @return aliMerchantAppidCondition 支付宝商户appid查询条件
	 */
	public Condition<String> getAliMerchantAppidCondition() {
		return aliMerchantAppidCondition;
	}

	/**
	 * 设置支付宝商户appid查询条件
	 * 
	 * @param aliMerchantAppidCondition 支付宝商户appid查询条件
	 */
	public void setAliMerchantAppidCondition(Condition<String> aliMerchantAppidCondition) {
		this.aliMerchantAppidCondition = aliMerchantAppidCondition;
	}

	/**
	 * 构造并返回支付宝商户公钥查询条件
	 * 
	 * @return aliPublicKeyCondition 支付宝商户公钥查询条件
	 */
	public Condition<String> aliPublicKey() {
		this.aliPublicKeyCondition = new Condition<>();
		return this.aliPublicKeyCondition;
	}
	
	/**
	 * 获取支付宝商户公钥查询条件
	 * 
	 * @return aliPublicKeyCondition 支付宝商户公钥查询条件
	 */
	public Condition<String> getAliPublicKeyCondition() {
		return aliPublicKeyCondition;
	}

	/**
	 * 设置支付宝商户公钥查询条件
	 * 
	 * @param aliPublicKeyCondition 支付宝商户公钥查询条件
	 */
	public void setAliPublicKeyCondition(Condition<String> aliPublicKeyCondition) {
		this.aliPublicKeyCondition = aliPublicKeyCondition;
	}

	/**
	 * 构造并返回支付宝商户公钥查询条件
	 * 
	 * @return aliMerchantKeyCondition 支付宝商户公钥查询条件
	 */
	public Condition<String> aliMerchantKey() {
		this.aliMerchantKeyCondition = new Condition<>();
		return this.aliMerchantKeyCondition;
	}
	
	/**
	 * 获取支付宝商户公钥查询条件
	 * 
	 * @return aliMerchantKeyCondition 支付宝商户公钥查询条件
	 */
	public Condition<String> getAliMerchantKeyCondition() {
		return aliMerchantKeyCondition;
	}

	/**
	 * 设置支付宝商户公钥查询条件
	 * 
	 * @param aliMerchantKeyCondition 支付宝商户公钥查询条件
	 */
	public void setAliMerchantKeyCondition(Condition<String> aliMerchantKeyCondition) {
		this.aliMerchantKeyCondition = aliMerchantKeyCondition;
	}

	/**
	 * 构造并返回支付宝商户私钥查询条件
	 * 
	 * @return aliPrivateKeyCondition 支付宝商户私钥查询条件
	 */
	public Condition<String> aliPrivateKey() {
		this.aliPrivateKeyCondition = new Condition<>();
		return this.aliPrivateKeyCondition;
	}
	
	/**
	 * 获取支付宝商户私钥查询条件
	 * 
	 * @return aliPrivateKeyCondition 支付宝商户私钥查询条件
	 */
	public Condition<String> getAliPrivateKeyCondition() {
		return aliPrivateKeyCondition;
	}

	/**
	 * 设置支付宝商户私钥查询条件
	 * 
	 * @param aliPrivateKeyCondition 支付宝商户私钥查询条件
	 */
	public void setAliPrivateKeyCondition(Condition<String> aliPrivateKeyCondition) {
		this.aliPrivateKeyCondition = aliPrivateKeyCondition;
	}

	/**
	 * 构造并返回逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置逻辑删除，1表示已删除,0表示未删除查询条件
	 * 
	 * @param delCondition 逻辑删除，1表示已删除,0表示未删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

}
